package com.its.us.web.config;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore;

import javax.annotation.Resource;

/**
 * 没有用到
 * @Author: master
 * @Date: 2020/10/28 13:19
 * @Version: 1.0
 */
@Configuration
public class RedisConfig {

    @Resource
    private RedisConnectionFactory connectionFactory;

    /*@Bean
    @Qualifier("redisTokenStore")
    public TokenStore redisTokenStore(){ // 使用了JWT就不用redis存储了
        return new RedisTokenStore(connectionFactory);
    }*/


}
